package com.kgc.basicprovider.dao;

import com.kgc.basic.pojo.Provider;

import java.util.List;
import java.util.Map;

public interface ProviderMapper {

    //校验编码是否重复
    Provider selectProviderByCode(String code);

    List<Provider>  selectProviderByPage(Map<String,Object> map);

    int insertProvider(Provider provider);

    int updateProvider(Provider provider);

    int deleteProvider(int id);

    List<Provider> selectAllSupplier();

    Map<String,Object> getProviderAllByData();
}
